cc.Class({
    extends: cc.BaseClass,

    properties: {
        mainInfoNode:   cc.Node,
        togArr:         [cc.Toggle],
        prefabs:        [cc.Prefab],

    },

    start () {
        this.registerEvent();
    },

    onLoad:function(){
        if(G.netWork.socket.readyState == WebSocket.OPEN){
            this.sendHeart();
        }
    },

    initData:function(){

    },

    registerEvent:function(){
    },

    onBtnClickCallBack:function(event,customData){
        var type = customData;
        if(type == "btnClub"){

        }else if(type == "togMsg"){

        }
    },

    onTogClickCallBack:function(event,customData){
        var type = customData;
        if(type == "togMsg"){

        }else if(type == "btnJoin"){

        }else if(type == "btnMyTable"){

        }else if(type == "btnCreateTab"){

        }else if(type == "togSelf"){
          
        }
    },

    onDestroy:function(){
    },

    //===============================获取服务器消息======================================

});
